from flask_restful import fields


coursestag_fields = {
    'id': fields.Integer,
    'tag_name': fields.String,
    'sequence': fields.Integer
}


course_fields = {
    'id': fields.Integer,
    'course_name': fields.String,
    'course_status': fields.Integer,
    'course_img': fields.String,
    'course_introduce': fields.String,
    'attention': fields.Integer,
    'learner': fields.Integer,
}


chapter_fields = {
    'id': fields.Integer,
    'title': fields.String,
    'course': fields.Integer,
    'serial_num': fields.Integer,
}

sections_fields = {
    'id': fields.Integer,
    'section_title': fields.String,
    'serial_num': fields.Integer,
    'chapters': fields.Integer,
    "learn_time": fields.Float,
    "video_url": fields.String,
    "like_count": fields.Integer,
    'is_learned': fields.Integer,
}


comment_filter = {
    'id': fields.Integer,
    'user': fields.Integer,
    'comment_time': fields.DateTime,
    'comment_content': fields.String,
    'zan_num': fields.Integer,
    'parent_id': fields.Integer,
    'course': fields.Integer,
    'reply_count': fields.Integer,
    'is_top': fields.Boolean,
}


vip_fields = {
    # 'level':fields.Integer,
    'price':fields.Float,
    'vip_cour':fields.Integer,
    'exempt_cour':fields.Integer,
    'save':fields.Integer,
    'environment': fields.Integer,
    'client':fields.Integer,
    'ssh':fields.Integer,
    "web_ide":fields.Integer,
    'discounts':fields.Integer,
    'exempt_study':fields.Integer
}
